package com.example.springboot.service;

import com.example.springboot.controller.request.BasePageRequest;
import com.example.springboot.controller.request.LoginRequest;
import com.example.springboot.controller.request.PasswordRequest;
import com.example.springboot.controller.request.UserPageRequest;
import com.example.springboot.dto.AdminLoginDTO;
import com.example.springboot.dto.UserLoginDTO;
import com.example.springboot.entity.User;

import java.util.List;

/**
 * ClassName:UserService
 * Package:com.example.springboot.service
 * Description:
 *
 * @Author: Gao
 * @Create: 2023/2/1 - 16:31
 */
public interface UserService {
    List<User> list();

    Object page(BasePageRequest basePageRequest);

    void save(User user);

    User getById(int id);

    void update(User user);

    void deleteById(int id);

    void changePassword(PasswordRequest passwordRequest);

    UserLoginDTO login(LoginRequest request);

}
